package com.self.member.enumm;

import com.self.member.constant.MemberConstant;

/**
 * @version v1.0
 * @ClassName: ReviewsStatusEnum
 * @Description:
 * @Author: Mac
 * @Date: 2022/6/18 10:46
 */
public enum ReviewsStatusEnum {
    REVIEWSSTATUS_PASS(MemberConstant.AUDIT_STATUS_PASS,"审核通过"),
    REVIEWSSTATUS_REJECT(MemberConstant.AUDIT_STATUS_REJECT,"审核拒绝"),
    REVIEWSSTATUS_UNAUDIT(MemberConstant.AUDIT_STATUS_UNAUDIT,"待审核"),
    REVIEWSSTATUS_UNADD(MemberConstant.AUDIT_STATUS_UNADD,"资料未填写");

    private int value;

    private String desc;

    ReviewsStatusEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static String getDescByVal(int value){
        for (ReviewsStatusEnum statusEnum : ReviewsStatusEnum.values()){
            if (statusEnum.getValue() == value){
                return statusEnum.getDesc();
            }
        }
        return "资料未填写";
    }

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
